package com.hualude.roadsign.repository;

import com.hualude.roadsign.model.UserActorEntity;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xu-jiaHui on 2017/4/8.
 */
public interface UserActorRepository extends CrudRepository<UserActorEntity, Long> {

    @Modifying
    @Query(value = "delete from UserActorEntity where userId=?1")
    public Integer deleteUserActorByUserId(Integer userId) throws Exception;

}
